package jmu.edu.yjc.domain.vo.comment;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import jmu.edu.yjc.domain.vo.user.UserInfoVo;
import jmu.edu.yjc.domain.vo.user.UserVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yjc
 * @date 2023/4/14 1:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVo {
    //主键ID
    private Long id;
    //评论的文章ID
    private Long commentArticleId;
    //是否是根评论默认不是0
    private String isRoot;
    //评论的根ID
    private Long rootCommentId;
    //评论的用户Id
    private Long toCommentUserId;
    private UserInfoVo commentUser;
    //评论的内容
    private String content;
    //评论的子评论数量
    private Integer childrenCount;
    //评论用户ID
    private Long createBy;
    private UserInfoVo createUser;
    //评论的时间
    private Date createTime;
}
